<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<base href="<s:property value="@com.study.portal.util.InitConfig@basePath"/>">
<title><s:property value="@com.study.portal.util.InitConfig@baseTitle" /></title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript">
function submitForm(){
	if($("#userEmail").val().isEmpty()){
		alert("请输入帐号！");
		return false;
	}
	
	if($("#userPwd").val().isEmpty()){
		alert("请输入密码！");
		return false;
	}
	$("#loginForm").submit();
}
</script>
</head>
<body>
	<s:form id="loginForm" action="login" method="post" onsubmit="return false;">
		<table>
			<tr>
				<td>帐号：</td>
				<td><s:textfield id="userEmail" name="userEmail" value="test@163.com" /></td>
			</tr>
			<tr>
				<td>密码：</td>
				<td><s:password id="userPwd" name="userPwd" value="admin"/></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td class="default"><s:submit value="提交" onclick="submitForm();" />
				<s:hidden name="url" />
				</td>
			</tr>
		</table>
	</s:form>
</body>
</html>